<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
	<META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 22 Jul 2002 11:12:01 GMT">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">  
    <title>TOS-Login</title>
    <link href="css/default.css?v=<?php echo date("YmdHis"); ?>" rel="stylesheet" type="text/css" >
    <script src="js/jquery-1.7.1.js?v=<?php echo date("YmdHis"); ?>" type="text/javascript"></script>
    <script src="js/jquery-ui-1.8.20-core.js?v=<?php echo date("YmdHis"); ?>" type="text/javascript"></script>
    <script src="js/form.js?v=<?php echo date("YmdHis"); ?>" type="text/javascript"></script>
</head>
<body>
<?php include("_header.php"); ?>
<form action="_login.php" method="POST" id="main-form">
    <table>
        <tr>
            <td>Username</td>
            <td><input type="text" class="textbox" size="20"
            	id="RACCOUNT_ID" name="RACCOUNT_ID" value="" 
            	onkeydown="return validateLogin(event, this);" /></td>
        </tr>
        <tr>
            <td>Password</td>
            <td><input type="password" class="textbox" size="20"
            	id="ACCOUNT_PASSWORD" name="ACCOUNT_PASSWORD" value=""
            	onkeydown="return validateLogin(event, this);" /></td>
        </tr>
        <tr>
            <td></td>
            <td><input type="button" class="button"
            	id="LOGON" name="LOGON" 
            	value="Log on" /></td>
        </tr>
    </table>
    <p><?php echo $_GET['errMsg']; ?></<p>
</form>
<hr />
<h6>Betterway (Thailand) Co.,Ltd.</h6>  
</body>
</html>
<script type="text/javascript">
	$(document).ready(function () {
		$("#RACCOUNT_ID").focus();
		$("#LOGON").click(function () {
			if ($("#RACCOUNT_ID").val() == "" && $("#ACCOUNT_PASSWORD").val() == "")
			{
				alert('ท่านยังระบุไม่ครบ');
				$("#RACCOUNT_ID").focus();
				return false;	
			}
			else
			{
				$("#main-form").submit();
			}
		});
		
		getResponseTime(); 		
	});
</script>